package com.qifeng.modules.postInfo.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.qifeng.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "post_info")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "")
public class PostInfo extends BaseEntity<Long> implements Serializable {

    private Integer userId;

    private String postName;

    private Integer type;

    private String city;

    private String salary;

    private String startTime;

    private String endTime;

    private Integer longTime;

    private String demand;

    private String content;

    private String source;

    private String des;

    private Integer status;


    public PostInfo() {
    }

    public PostInfo(PostInfo postInfo) {
        super(postInfo.getId(),postInfo.getCreateTime(),postInfo.getUpdateTime(),postInfo.getUpdateBy(),postInfo.getCreateBy());
        this.userId = postInfo.getUserId();
        this.postName = postInfo.getPostName();
        this.type = postInfo.getType();
        this.city = postInfo.getCity();
        this.salary = postInfo.getSalary();
        this.startTime = postInfo.getStartTime();
        this.endTime = postInfo.getEndTime();
        this.longTime = postInfo.getLongTime();
        this.demand = postInfo.getDemand();
        this.content = postInfo.getContent();
        this.source = postInfo.getSource();
        this.des = postInfo.getDes();
        this.status = postInfo.getStatus();

    }


    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    @Basic
    @ApiModelProperty(value = "用户id", example = "123")
    @Column(name = "user_id")
    public Integer getUserId() {
        return this.userId;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    @Basic
    @ApiModelProperty(value = "兼职名称")
    @Column(name = "post_name")
    public String getPostName() {
        return this.postName;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Basic
    @ApiModelProperty(value = "兼职类型 0:发传单 1:礼仪", example = "123")
    @Column(name = "type")
    public Integer getType() {
        return this.type;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Basic
    @ApiModelProperty(value = "城市")
    @Column(name = "city")
    public String getCity() {
        return this.city;
    }

    public void setSalary(String salary) {
        this.salary = salary;
    }

    @Basic
    @ApiModelProperty(value = "时薪")
    @Column(name = "salary")
    public String getSalary() {
        return this.salary;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    @Basic
    @ApiModelProperty(value = "开始时间")
    @Column(name = "start_time")
    public String getStartTime() {
        return this.startTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Basic
    @ApiModelProperty(value = "结束时间")
    @Column(name = "end_time")
    public String getEndTime() {
        return this.endTime;
    }

    public void setLongTime(Integer longTime) {
        this.longTime = longTime;
    }

    @Basic
    @ApiModelProperty(value = "时长", example = "123")
    @Column(name = "long_time")
    public Integer getLongTime() {
        return this.longTime;
    }

    public void setDemand(String demand) {
        this.demand = demand;
    }

    @Basic
    @ApiModelProperty(value = "要求")
    @Column(name = "demand")
    public String getDemand() {
        return this.demand;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @ApiModelProperty(value = "内容")
    @Column(name = "content")
    public String getContent() {
        return this.content;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @Basic
    @ApiModelProperty(value = "来源")
    @Column(name = "source")
    public String getSource() {
        return this.source;
    }

    public void setDes(String des) {
        this.des = des;
    }

    @Basic
    @ApiModelProperty(value = "说明")
    @Column(name = "des")
    public String getDes() {
        return this.des;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Basic
    @ApiModelProperty(value = "0:保存 1:发布+保存", example = "123")
    @Column(name = "status")
    public Integer getStatus() {
        return this.status;
    }


}